package com.kotodama.interfaces.web.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

/**
 * 创建租户的请求对象
 */
public class CreateTenantRequest {
    
    @NotBlank(message = "租户ID不能为空")
    @Pattern(regexp = "^[a-z0-9-]+$", message = "租户ID只能包含小写字母、数字和连字符")
    @Size(min = 3, max = 50, message = "租户ID长度必须在3-50之间")
    private String id;
    
    @NotBlank(message = "租户名称不能为空")
    @Size(min = 2, max = 100, message = "租户名称长度必须在2-100之间")
    private String name;

    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
